<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>用户列表</title>
<link rel="stylesheet" href="./css/common.css" />
<%@ include file="/common/page.jsp"%>
<script type="text/javascript">
    function pageselectCallback(page_index, jq){
    	var prev_page = $("#current_page").val();
        if (page_index != prev_page) {
        	$("#current_page").val(page_index);
        	$("#condition").submit();
        }
        return false;
    }   
</script>
</head>
<body>

<s:form action="getAllAccount" id="condition">
  	<s:hidden id="current_page" name="page.currentPage" />
</s:form>
<table border=0 cellspacing=0 cellpadding=5 align=center>
  <thead>
  <tr>
  	<td colspan=9><div id="Pagination"></div></td>
  <tr>
  <tr>
  	<td>用户ID</td>
  	<td>姓名</td>
  	<td>电子邮件</td>
  	<td>电话</td>
  	<td>状态</td>
  	<td>区域</td>
  	<td colspan=3>操作</td>
  </tr>
  </thead>
  <tbody>
  <s:iterator value="accountList" id="account" status="st">
  <tr>
    <td><s:property value="#account.userid" /></td>
	<td><s:property value="#account.lastName" escape="false"/><s:property value="#account.firstName " escape="false"/></td>
	<td><s:property value="#account.email" /></td>
	<td><s:property value="#account.phone" /></td>
	<td><s:checkbox name="#account.status"/></td>
	<td><s:property value="#account.country" /><s:property value="#account.state" /><s:property value="#account.city" /></td>
	<td><a href="getAccount.action?userid=<s:property value="#account.userid" />">编辑</a></td>
	<td><a href="deleteAccount.action?userid=<s:property value="#account.userid" />">删除</a></td>
	<td><a href="copyAccount.action?userid=<s:property value="#account.userid" />">复制</a></td>
  </tr>
  </s:iterator>
  </tbody>
</table>
</body>
</html>